<!-- 比例记录 -->
<template>
  <div>
    <dt-grid :height='500' ref='Table' :list='tableList'>
    </dt-grid>
    <!-- 分摊比例调整 -->
    <Modal v-model="Trimproportion" title="分摊比例调整" @on-cancel="AllModalCancel" width="800px"
      :footerHide="true">
      <change-proportion ref="Trimproportion" @onClose='AllModalCancel'
        @onChangeTable='onSuccess' />
    </Modal>
  </div>
</template>

<script>
  import Column from './opt/ratioLogColumn'
  import changeProportion from '../modal/changeProportion'
  import teamsApi from '@/biz/buildingManagement/teams'

  export default {
    components: { changeProportion },
    data() {
      return {
        tableList: [],
        Trimproportion: false,
      };
    },
    methods: {
      //新增成员关闭
      AllModalCancel() {
        this.Trimproportion = false
      },
      changeRatioLog(info) {
        this.Trimproportion = true
        this.$refs.Trimproportion.ratiologEdit(info.roleId)
      },
      onSuccess(data) {
        this.$emit('openProportion')
      },

    },
    mounted() {
      this.$refs.Table.init(this, new Column(this))
    },
  }
</script>
<style lang='scss' scoped>

</style>